﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERP.WH.Models.Entity;

[Table("wh_inventory_check_detail")]
public partial class WhInventoryCheckDetail
{
    [Key]
    public long DetailId { get; set; }

    public long CheckId { get; set; }

    public long MaterialId { get; set; }

    public long? LocationId { get; set; }

    public string? BatchNo { get; set; }

    /// <summary>
    /// 系统数量
    /// </summary>
    public decimal? SystemQuantity { get; set; }

    /// <summary>
    /// 实际数量
    /// </summary>
    public decimal? ActualQuantity { get; set; }

    /// <summary>
    /// 差异数量
    /// </summary>
    public decimal? DifferenceQuantity { get; set; }

    public decimal? UnitPrice { get; set; }

    public decimal? DifferenceAmount { get; set; }

    public int? CheckPerson { get; set; }

    public DateTime? CheckTime { get; set; }

    /// <summary>
    /// 0-待盘点, 1-已盘点
    /// </summary>
    public sbyte? Status { get; set; }

    public string? Remark { get; set; }

    public DateTime? CreatedAt { get; set; }

    public DateTime? UpdatedAt { get; set; }

    public sbyte? IsDelete { get; set; }
}
